<?php
function merge_cover($source, $destination, $out_file){
	$src = imagecreatefrompng($source);
	$dest = imagecreatefromjpeg($destination);
	imagecopy ($dest, $src, 0, 0, 0, 0, 155, 184);
	imagejpeg($dest, $out_file, 90);
	imagedestroy($dest);
	imagedestroy($src);
}

merge_cover('doseyeh_cover.png', 'demo_doseyeh.jpg', 'demo_dos_merged.jpg');
?>
